﻿using System;
using ConsoleUtility.Command;

namespace ConsoleUtility.Tests.Demo
{
    [Command("static", nameof(StaticDemo.StaticTest))]
    public static class StaticDemo
    {
        [Option("prop", 'p')]
        public static string StaticProp { get; set; }

        [Method("test", 'T')]
        public static void StaticTest()
        {
            Console.WriteLine(StaticProp);
        }

        [Method("exception", 'E')]
        public static void StaticThrowException()
        {
            throw new Exception();
        }
    }
}
